package para3.Senior.client;

import java.io.BufferedReader;
import java.io.IOException;

public class ClientThread implements Runnable{
    BufferedReader br = null;
    public ClientThread(BufferedReader br){
        this.br = br;

    }

    @Override
    public void run() {
        try {
            String line = null;
            while ( (line = br.readLine()) != null){
                System.out.println(line);
            }
        }
        catch (IOException ex){
            ex.printStackTrace();
        }
        finally {
            try {
                if (br != null){
                    br.close();
                }
            }
            catch (IOException ex){
                ex.printStackTrace();
            }
        }
    }
}
